<template>
  <fieldset>
    <legend>详情页</legend>
    <h1>{{info}}</h1>
  </fieldset>
</template>
<script>
 export default{
  // props: ['productid'],
  data(){
    return{
      info:"1111111"
    } 
  },
  mounted () {
    let productid=this.$route.params.productid;
    // console.log(this.$route)
    fetch("http://chst.vip:1234/api/getmoneyctrlproduct?productid=" +productid)
    .then(body=>body.json())
    .then(res=>{
     console.log(res)
     this.info = res.result[0].productInfo2
    })
  }
 }
</script>